package com.ruoyi.mof.constants;


import com.ruoyi.mof.config.CertConfig;

/**
 * @author Fei.Cong
 * @date 2023-09-08 10:50
 */
public class Constants {

    /**
     * 互联网接口地址
     */
    public final static String PREFIX_URL = CertConfig.getPrefixUrl();

    /**
     * 上下文
     */
    public final static String MOF_CONTEXT = CertConfig.getContext();

    /**
     * token
     */
    public final static String TOKEN = CertConfig.getTokenUrl();

    /**
     * 赋码私钥
     */
    public final static String PRIVATE_KEY = CertConfig.getPrivateKey();

    /**
     * 赋码公钥
     */
    public final static String PUBLIC_KEY = CertConfig.getPublicKey();

    /**
     * 客户端账号标识
     */
    public final static String APPKEY = CertConfig.getAppKey();

    /**
     * 客户端账号密码
     */
    public final static String APPSECRET = CertConfig.getAppSecret();

    /**
     * 中电子证照根代码固定
     */
    public final static String CERT_ROOT_CODE = "1.2.156.3005.2";

    /**
     * 证照类型代码固定,建筑起重机械使用登记证书
     */
    public final static String CERT_TYPE_CODE = "11100000000013338W083";

    /**
     * 省份6位辖区代码
     */
    public final static String PROVINCE = "230000";

    /**
     * 二维码扫码查询提示页面固定
     */
    public final static String CERT_QR_CODE_PREVIEW_URL_PREFIX = "https://zlaq.mohurd.gov.cn/fwmh/middlepage.html";

//    /**
//     * 预览服务器nginx
//     */
//    public final static String CERT_SERVER = CertConfig.getCertServer();
//
//    /**
//     * 环境上下文
//     */
//    public final static String ENVIRONMENT_CONTEXT = CertConfig.getEnvironmentContext();

    /**
     * 密钥
     */
    public final static String SECURITY_KEY = "8WLA2mnqiGs+sKpV";

}
